import request from "@/utils/request";

// 获取基础数据列表
export function getBaseLotteryList(query) {
  return request({
    url: "/base/BaseLottery/list",
    method: "get",
    params: query
  });
}
// 彩票是否停售状态奥做
export function updateBaseLottery(data) {
  return request({
    url: "/base/BaseLottery/edit",
    method: "post",
    data: data
  });
}

export function getLotteryOneList(query) {
  return request({
    url: "/sale/LotteryOne/list",
    method: "get",
    params: query
  });
}

export function getLotterySixList(query) {
  return request({
    url: "/sale/SaleLotterySix/list",
    method: "get",
      params: query

  });
}

//获取上一张票信息
export function getLastLotter(query) {
  return request({
    url: "/base/BaseLottery/getLastLotter",
    method: "get",
      params: query

  });
}
export function getLotteryThreeList(query) {
  return request({
    url: "/sale/SaleLotteryThree/list",
    method: "get",
    params: query
  });
}

// 彩票是否停售状态奥做
export function saveLotteryVo(data) {
  return request({
    url: "/base/BaseLottery/buyLotter",
    method: "post",
    data: data
  });
}
// 彩票是否停售状态奥做
export function saveLotteryVo2(data) {
  return request({
    url: "/base/BaseLottery/buyLotter2",
    method: "post",
    data: data
  });
}

export function getByLottNoList(query) {
  return request({
    url: "/base/BaseLottery/getByLottNo",
    method: "get",
    params: query
  });
}

//获取数据字典
export function dataDictType(dictType) {
    return request({

    url: "/system/dict/data/type/"+ dictType,
    method: "get"

  });
}
// 最大购买次数
export function maxBuyNo(data) {
  return request({
    url: "/base/BaseLottery/updateAll",
    method: "post",
     params: data
  });
}

export function getSampleData(query) {
  return request({
    url: "/base/BaseLottery/getSampleData",
    method: "get",
    params: query
  });
}

